package com.webcat.entity.bo;

import lombok.Data;

import java.io.Serializable;

@Data
public class MessageInfo implements Serializable {

    private String type;

    private String content;

    public MessageInfo(String type, String content) {
        this.type = type;
        this.content = content;
    }
    public MessageInfo() {

    }

    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {
        private String type;

        private String content;
        public Builder type(String type) {
            this.type = type;
            return this;
        }

        public Builder content(String content) {
            this.content = content;
            return this;
        }

        public MessageInfo build() {
            return new MessageInfo(type, content);
        }
    }
}
